﻿using System;
using KPIS.GERP.GFMS.MODEL;
using System.Collections.Generic;
using System.Data;

namespace KPIS.GERP.GFMS.IDAL
{
    public interface IDAL_MessageSend
    {
        IList<M_MessageSend> GetFull(Nullable<int> to_emp_seq
            , Nullable<int> from_emp_seq, string message_status);
        IList<M_MessageSend> GetList(Nullable<int> to_emp_seq
            , Nullable<int> from_emp_seq, string message_status);
        M_MessageSend GetInfo(int seq);
        M_MessageSend GetInfoFromRefSeq(int ref_seq, string ref_type);
        M_MessageSend GetInfoFromFromSendSeq(int seq);
        DataTable GetCurrentApprover(Nullable<int> emp_seq, string process, int step_no);
        string GetNextStepNo(Nullable<int> approve_path_seq);
        int GetUnreadCount(int emp_seq);
        M_MessageSend GetLatestMessageStatus(Nullable<int> ref_seq, string ref_type);
        //string SelectRecentInsertedRoleSeq();

        string Insert(M_MessageSend info);
        void Update(M_MessageSend info);
        void Delete(M_MessageSend info);
        void UpdateMessageStatus(M_MessageSend info);
    }
}
